var debugMode = true;
var timeOut;
function error_info(method, info) {
	alert(method +" " + info);
}

function debug_info(method, info) {
	if (!debugMode) return false;
	if (method == '' && info == '') {
		clearTimeout(timeOut);
		document.getElementById('debug_box').innerHTML = "";
		return true;
	}
	clearTimeout(timeOut);
	var message="<table class='debug_tab'><tr><td>DEBUG: ("+method+") " + info + "</td></tr></table>";
	document.getElementById('debug_box').innerHTML = document.getElementById('debug_box').innerHTML + message;
	timeOut = setTimeout("debug_info('','')",5000);
	return true;
}

function xmlGetError(xml) {
	try {
		if(xmlObj.childNodes[0].textContent != ""){
			return xmlObj.childNodes[0].textContent;
		}
	} catch (ex){
		error_info('xmlGetResult error');
	}
	return false;
}